package com.rdk.dao;

import java.util.List;
import java.util.Map;

import com.rdk.entity.TShareMessage;

public interface TShareMessageMapper extends BaseDao<TShareMessage>{
    List<TShareMessage> selectByShareId(String shareId);
    //@Param("userId") String userId, @Param("lastQueryTime") String lastQueryTime,
    //@Param("offset") int offset, @Param("rows") int rows
    List<TShareMessage> selectNews(Map<String, Object> map);
    //@Param("messages") List<ShareMessage> messages
    List<TShareMessage> selectNewsRelation(List<TShareMessage> messages);
    public int getUnreadMessageCount(String userId);
    void deleteByShareId(String shareId);
    
    void cancelLike(Map<String, Object> map);
    
    void updateByShareId(Map<String, Object> map);
    
    void updateByUserId(String userId);
}